package hydrap2p.gui;

import java.awt.Component;

import javax.swing.JTable;
import javax.swing.SwingConstants;
import javax.swing.table.DefaultTableCellRenderer;

/**
 * A class shared by the table models that determines how to display text in a table.
 * 
 * @author Jared
 */
public class TextRenderer extends DefaultTableCellRenderer {
	public Component getTableCellRendererComponent(JTable table, Object	value, boolean isSelected,	boolean hasFocus, int row, int column) {
			super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
			setHorizontalAlignment(SwingConstants.LEFT);
			return this;
		}
	}